<?php get_header(); ?>
	<div id="content-top">
		<div id="menu-bg"></div>
		<div id="top-index-overlay"></div>
		<div id="content" class="clearfix">
			<div id="main-area">
				<?php get_template_part('includes/breadcrumbs'); ?>
				<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
				<div class="full_entry clearfix">
					<?php if (get_option('realestate_integration_single_top') <> '' && get_option('realestate_integrate_singletop_enable') == 'on') echo(get_option('realestate_integration_single_top')); ?>
					<?php $width = 159;
						  $height = 159;
						  $classtext = '';
						  $titletext = get_the_title();
						  $thumbnail = get_thumbnail($width,$height,$classtext,$titletext,$titletext);
						  $thumb = $thumbnail["thumb"]; ?>
					<div class="entry_content<?php if ($thumb <> '' && get_option('realestate_thumbnails_index') == 'on') echo(' setwidth') ?>">
						<?php if($thumb <> '' && get_option('realestate_page_thumbnails') == 'on') { ?>
							<div class="small-thumb">
								<?php print_thumbnail($thumb, $thumbnail["use_timthumb"], $titletext , $width, $height, $classtext); ?>
								<span class="overlay"></span>
							</div><!-- end .small-thumb -->
						<?php }; ?>
						
						<h1 class="single-title"><?php the_title(); ?></h1>
						<?php the_content(); ?>
						<?php wp_link_pages(array('before' => '<p><strong>'.esc_html__('Pages', 'RealEstate').':</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
						<?php edit_post_link(esc_html__('Edit this page', 'RealEstate')); ?>
					</div><!-- end .entry_content -->
				</div><!-- .full_entry -->
				<?php if (get_option('realestate_show_pagescomments') == 'on') 
					comments_template('', true); ?>
				<?php endwhile; endif; ?>
			</div><!-- end #main-area -->
			<?php get_sidebar(); ?>
<?php get_footer(); ?>